<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../template/WorkspaceTemplate.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jsp/jstl/core">

    <ui:define name="top">

    </ui:define>

    <ui:define name="left">

    </ui:define>

    <ui:define name="right">

    </ui:define>

    <ui:define name="content">
        <h:form id="dmpsInfoForm">
            <p:panel header="Select Daily Master Production Schedule Period">
                <p:messages showDetail="true"/>
                <h:panelGrid columns="4">
                    <h:outputLabel style="font-weight: bold" value="Year: "/>
                    <h:selectOneMenu value="#{dailyMpsManagerBean.selectedYear}" required="true" requiredMessage="Please select the period.">
                        <f:selectItems value="#{dailyMpsManagerBean.yearList}" var="item" itemValue="#{item}" itemLabel="#{item}"/>
                    </h:selectOneMenu>
                    <h:outputText value=""/>
                    <h:outputText value=""/>

                    <h:outputLabel style="font-weight: bold" value="Month: "/>
                    <h:selectOneMenu value="#{dailyMpsManagerBean.selectedMonth}" required="true" requiredMessage="Please select the period.">
                        <f:selectItems value="#{dailyMpsManagerBean.monthList}" var="item" itemValue="#{item}" itemLabel="#{item}"/>
                    </h:selectOneMenu>
                    <h:outputText value=""/>
                    <h:outputText value=""/>
                    
                    <h:outputLabel style="font-weight: bold" value="Week: "/>
                    <h:selectOneMenu value="#{dailyMpsManagerBean.selectedWeek}" required="true" requiredMessage="Please select the period.">
                        <f:selectItems value="#{dailyMpsManagerBean.weekList}" var="item" itemValue="#{item}" itemLabel="#{item}"/>
                    </h:selectOneMenu>
                    <h:outputText value=""/>
                    <h:outputText value=""/>
                    
                </h:panelGrid>
                <p:commandButton value="Next" ajax="false" action="#{dailyMpsManagerBean.redirectToCreateDailyMPSDetail}"/>
            </p:panel>
        </h:form>
    </ui:define>

    <ui:define name="bottom">

    </ui:define>

</ui:composition>
